<!DOCTYPE html>
<html lang="en">
<body>
	<input name="" value="" type="checkbox" />
	<input name="" value="" type="radio" />
	<script
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>
		(function($) {
			// Set all checkboxes or radio buttons to checked 
			$('input:checkbox,input:radio').attr('checked', 'checked');
		})(jQuery);
	</script>
</body>
</html>